import {createBrowserRouter,Navigate} from 'react-router-dom'
import App from '../App'
import List from '../component/List'


let router=createBrowserRouter([
    {
        path:"/",
        element:<App/>,
        children:[
            {
                path:"/list",
                element:<List/>
            },
                  {
                    path:"/",
                element:<Navigate to="/list"/>
            }
        ]
    }
])

export default router